package oop4.animal;

public class Pet {
    private String name;
    private String strain; //品种
    private int weight;
    private int age;
    private char sex;
    private int love; //可爱值
    private int health; //健康值

    public Pet(String name, String strain, int weight, int age, char sex, int love, int health) {
        this.name = name;
        this.strain = strain;
        this.weight = weight;
        this.age = age;
        this.sex = sex;
        this.love = love;
        this.health = health;
    }

    public void show() {
        System.out.println("宠物名字:" + name + "\t品种:" + strain + "\t性别:" + sex + " \t年龄:" + age + "岁\t体重:" + weight + "斤\t品种" + strain + "\t可爱值:" + love + "\t健康值:" + health);
    }

    public void eat() {
        System.out.println("宠物" + name + "吃东西了");
    }

    public void sleep() {
        System.out.println("宠物" + name + "睡觉了");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStrain() {
        return strain;
    }

    public void setStrain(String strain) {
        this.strain = strain;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public int getLove() {
        return love;
    }

    public void setLove(int love) {
        this.love = love;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getHealth() {
        return health;
    }

    public void setHealth(int health) {
        this.health = health;
    }

}

